package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.DangKou;
import com.ruoyi.system.domain.DingDan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单信息 Mapper 接口
 * </p>
 *
 * @author qubaofeng
 * @since 2025-02-16
 */
public interface DingDanMapper extends BaseMapper<DingDan> {

    List<DangKou> selectDingDanList(DingDan user);

    DingDan selectDingDanById(Long id);

    List<DingDan> selectListByDangKouIds(@Param(value = "list") List<Long> dangkouIds);

    List<DingDan> selectHistoryList(@Param(value = "list") List<Long> dangkouIds,
                                    @Param(value = "huoPinId") Long huoPinId,
                                    @Param(value = "timeStart") String timeStart,
                                    @Param(value = "timeEnd") String timeEnd);
}
